package com.ask.mapper;

import com.ask.entity.User;
import com.ask.vo.UserReportVO;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDate;
import java.util.Map;

@Mapper
public interface UserMapper {
    @Select("select * from user where openid = #{openid}")
    User getByOpenId(String openid);


    void insert(User user);

    @Select("select * from user where id = #{Id}")
    User getById(Long Id);

    Integer countByMap(Map map);
}
